package cn.gogoyc.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.gogoyc.org.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 店铺实体类
 */
@Data
public class Shop extends BaseDomain{

    /**
     * 店铺名称
     */
    @Excel(name = "店铺名称",orderNum = "1",width = 30)
    private String name;
    /**
     * 店铺座机
     */
    @Excel(name = "手机号码",orderNum = "2",width = 30)
    private String tel;
    /**
     * 入驻时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime = new Date();
    /**
     * 店铺状态：1待审核，2审核通过待激活，3激活成功，4驳回
     */
    private Integer state = 1;
    /**
     * 店铺地址
     */
    @Excel(name = "店铺地址",orderNum = "3",width = 30)
    private String address;
    /**
     * 店铺logo
     */
    private String logo;
    /**
     * 店铺管理员ID
     */
    private Long adminId;

    /**
     * 店铺管理员信息
     */
    @Excel(name = "店长姓名",orderNum = "4",width = 30)
    private Employee admin;

}
